<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.wxtf.platform.plugins.user.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	UserBean user = (UserBean) request.getSession().getAttribute("userBean");

	String _db = user.getDbType();
	Map<String, List<Map<String, String>>> dicMap = user.getDicMap();
	List<Map<String, String>> list = null;
	String temp = "";
	
	String tbe_employment_forms = "<option value=\"31\">劳务用工</option>";//用工形式
	String tbe_nation = "";//民族
	String tbe_marital_status = "";//婚姻状态
	String tbe_status = "";//员工状态
	String tbe_ba_status = "";//生育能力状态
	String tbe_birth_control_measures = "";//节育措施
	String tbe_es_reason = "";//重点理由
 	
	list = dicMap.get("5");
	if (null != list && list.size() > 0) {
		for (Map<String, String> map : list) {
			tbe_nation += "<option value=\"" + map.get("tmgd_id") + "\">" + map.get("tmgd_name") + "</option>";
		}
	}
	list = null;
	list = dicMap.get("27");
	if (null != list && list.size() > 0) {
		for (Map<String, String> map : list) {
			tbe_marital_status += "<option value=\"" + map.get("tmgd_id") + "\">" + map.get("tmgd_name") + "</option>";
		}
	}
	list = null;
	list = dicMap.get("102");
	if (null != list && list.size() > 0) {
		for (Map<String, String> map : list) {
			tbe_status += "<option value=\"" + map.get("tmgd_id") + "\">" + map.get("tmgd_name") + "</option>";
		}
	}
	list = null;
	list = dicMap.get("103");
	if (null != list && list.size() > 0) {
		for (Map<String, String> map : list) {
			tbe_ba_status += "<option value=\"" + map.get("tmgd_id") + "\">" + map.get("tmgd_name") + "</option>";
		}
	}
	list = null;
	list = dicMap.get("104");
	if (null != list && list.size() > 0) {
		String first_value = "";
		for (Map<String, String> map : list) {
			if ("104-8".equals(map.get("tmgd_id"))) {
				first_value = "<option value=\"" + map.get("tmgd_id") + "\">" + map.get("tmgd_name")+ "</option>";
			} else {
				tbe_birth_control_measures += "<option value=\"" + map.get("tmgd_id") + "\">"+ map.get("tmgd_name") + "</option>";
			}
		}
		tbe_birth_control_measures = first_value + tbe_birth_control_measures;
	}
	list = null;
	list = dicMap.get("107");
	if (null != list && list.size() > 0) {
		for (Map<String, String> map : list) {
			tbe_es_reason += "<option value=\"" + map.get("tmgd_id") + "\">" + map.get("tmgd_name") + "</option>";
		}
	}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>人员临时工</title>
		<base href="<%=basePath%>"/>
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta http-equiv="pragma" content="no-cache"/>
		<meta http-equiv="cache-control" content="no-cache"/>
		<meta http-equiv="expires" content="0"/>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        
        <link type="text/css" rel="stylesheet" href="ligerUI/skins/Aqua/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet" href="ligerUI/skins/<%=user.getUserCss()%>/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet" href="ligerUI/skins/ligerui-icons.css" />
		<link type="text/css" rel="stylesheet" href="resource/css/style.css" />

		<script type="text/javascript" src="js/jquery/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="ligerUI/js/core/base.js"></script>
		<script type="text/javascript" src="ligerUI/js/ligerui.min.js"></script>
	    <script type="text/javascript" src="js/common.js"></script>
		<script type="text/javascript" src="js/validata.js"></script>

		<script type="text/javascript" src="ligerUI/js/plugins/ligerGrid.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerTree.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerForm.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerDateEditor.js"></script>

<script type="text/javascript">
var _db = '<%=_db%>';

_jsonObj.classname = "com.wxtf.platform.main.employee.EmployeeAction";
_jsonObj.methodname = "queryPage_tem";
_jsonObj.logicdata = "[{\"types\":\"init\"}]";
var _jsonTemp = {};
_jsonTemp.classname = "com.wxtf.platform.main.employee.EmpTemporary";
_jsonTemp.methodname = "queryPage";
_jsonTemp.logicdata = "[{\"orgId\":\"\"}]";
var win;//人员新建/修改弹出框
var win2;//高级检索弹出框
var win3;//机构弹出框
var win4;//机构弹出框
var manager;//人员表格

$(function(){
	
	manager = $("#emp_tem_grid").ligerGrid({
		url: _url, parms: _jsonObj, width: '100%', height: '100%',async:false,
		usePager: true, rownumbers: true, checkbox: true, alternatingRow: true,
		columns: [
			{ display: 'tbe_id', name: 'tbe_id', hide: true,width:1 },
			{ display: 'org_id', name: 'org_id', hide: true,width:1 },
			{ display: '机构名称', name: 'reserve1', width:150, align:'left' },
			{ display: '姓名', name: 'tbe_name', width: 100, align: 'left',render: function(record, index, value, oth){
					return " <a href='javascript:addData(" + JSON.stringify(record) + ")'>"+value+"</a>";
			}},
			{ display: '性别', name: 'tbe_sex', width:80, align: 'center'},
			{ display: '出生日期', name: 'tbe_birthday', width: 120, align: 'center' },
			{ display: '身份证号', name: 'tbe_idcard', width: 150, align: 'left' },
			{ display: '职工证号', name: 'tbe_work_permit',hide: true,width:1, align:'left' },
			{ display: '用工形式', name: 'tbe_employment_forms', width:  1, hide:true },
			{ display: '曾用名', name: 'tbe_former_name', hide: true,width:1, align: 'left' },
			{ display: '拼音码', name: 'tbe_spell_code', hide: true,width:1, align: 'left' },
			{ display: '籍贯', name: 'tbe_native_palce', width: 1,hide:true },
			{ display: '民族', name: 'tbe_nation', width: 1, hide:true },
			{ display: '出生地', name: 'tbe_birthplace', width:  1, hide:true },
			{ display: '入厂时间', name: 'tbe_join_time', width:  1, hide:true },
			{ display: '工龄', name: 'tbe_seniority', width:  1, hide:true },
			{ display: '手机', name: 'tbe_mobile', hide: true,width:1, align:'left'  },
			{ display: '家庭电话', name: 'tbe_family_phone', width: 100, align: 'left' },
			{ display: '家庭住址', name: 'tbe_address', width: 250, align: 'left' },
			{ display: '婚姻状态', name: 'tbe_marital_status', width: 100, align: 'left',
				render: function(record, index, value, oth){
					<%
					list = dicMap.get("27");
					temp = "";
					if(null != list && list.size() > 0){
						for(Map<String, String> map: list){
					%>
					if(value == '<%=map.get("tmgd_id")%>'){
						<%
						temp = map.get("tmgd_name");
						%>
						return '<%=temp%>';
					}
					<%
						}
					}
					%>
					return value;
				}
			},
			{ display: '婚姻状况', name: 'tbe_marital_condition', hide: true,width:1, align:'left' },
			{ display: '结婚时间', name: 'tbe_married_time', width:  1, hide:true },
			{ display: '结婚证号', name: 'tbe_marriage_certificate', width:  1, hide:true },
			{ display: '政治面貌', name: 'tbe_political_status', width:  1, hide:true },
			{ display: '学历', name: 'tbe_qualification', width:  1, hide:true },
			{ display: '毕业学校', name: 'tbe_graduate_college', width:  1, hide:true },
			{ display: '所学专业', name: 'tbe_major', width:  1, hide:true },
			{ display: '工作时间', name: 'tbe_work_area', width:  1, hide:true },
			{ display: '职务', name: 'tbe_position', width:  1, hide:true },
			{ display: '是否允许再生育', name: 'tbe_is_again_birth', width:  1, hide:true },
			{ display: '是否不孕症（绝经）', name: 'tbe_is_barrenness', width:  1, hide:true },
			{ display: '是否晚婚', name: 'tbe_is_late_marriage', width:  1, hide:true },
			{ display: '是否晚育', name: 'tbe_is_late_birth', width:  1, hide:true },
			{ display: '员工状态', name: 'tbe_status', width:  1, hide:true },
			{ display: '生育能力状态', name: 'tbe_ba_status', width:  1, hide:true },
			{ display: '节育措施', name: 'tbe_birth_control_measures', width:  1, hide:true },
			{ display: '设为重点时间', name: 'tbe_es_time', width:  1, hide:true },
			{ display: '是否重点服务对象', name: 'tbe_is_es', width:  1, hide:true },
			{ display: '重点理由', name: 'tbe_es_reason', width:  1, hide:true },
			{ display: '子女情况', name: 'tbe_children_status', width:  1, hide:true },
			{ display: '排序号', name: 'tbe_order', width:  1, hide:true },
			{ display: '备注', name: 'tbe_memo', width:  1, hide:true },
			{ display: 'reserve2', name: 'reserve2', width:  1, hide:true },
			{ display: 'reserve3', name: 'reserve3', width:  1, hide:true },
			{ display: 'reserve4', name: 'reserve4', width:  1, hide:true },
			{ display: 'reserve5', name: 'reserve5', width:  1, hide:true },
			{ display: '录入人', name: 'create_by', width:  1, hide:true },
			{ display: '录入时间', name: 'create_time', width:  1, hide:true },
			{ display: '最后修改人', name: 'last_modify_by', width:  1, hide:true },
			{ display: '最后修改时间', name: 'last_modify_time', width: 1, hide:true },
			{ display: '编辑', name:'edit',width:60,isSort:false,render: function(record, index, value, oth){
					return "<img src='ligerUI/skins/icons/edit.gif' onclick='addData(" + JSON.stringify(record) + ")'></img>";
				}
			}
		],
		toolbar: {
			items: [
				{ text: '新建', click: function(){ addData(); }, icon: 'add' },
				{ line: true },
				{ text: '删除', click: function(){ delData(); },icon: 'delete'}
			]
		}
		
	});

	/*
	 * 日期框
	 */
	$("#tbe_birthday").ligerDateEditor({ format: "yyyy-MM-dd", width:182 });
	$("#tbe_work_area").ligerDateEditor({ format: "yyyy-MM-dd", width:182});
	$("#tbe_es_time").ligerDateEditor({ format: "yyyy-MM-dd", width:182});
	refTemp();
});
//刷新临时工数
function refTemp(){
	_jsonTemp.classname = "com.wxtf.platform.main.employee.EmpTemporary";
	_jsonTemp.methodname = "queryPage";
	_jsonTemp.logicdata = "[{\"orgId\":\"\"}]";
	//callserver(_jsonTemp, function(data,status){alert("s");$("#ser5").val('d');},function(data,status){alert("s");warningTip(data.resultrecord);});
	
	$.ajax({
					type: "post",
					url: "/baseplatform/com/wxtf/platform/servlet/SystemControlServlet.thtf",
					data: _jsonTemp,
					dataType: 'json',
					async:true,
					success: function(data,status){
								if(data.length > 0){
									$("#ser5").val(data[0].num);
								}else{
									$("#ser5").val("");
								}
							},
					error: function(XMLHttpRequest, textStatus, errorThrown){
								alert(textStatus);
							}
				});
}
/*
 * ajax成功回调
 */
function ajaxCallbackSuccFunc(data, textStatus){
	serch1();
	if(data.result || data.result == 'true'){
		succMsgTip(data.resultrecord);
	}else{
		warningTip(data.resultrecord);
	}
	if(win && data.result){
		win.hide();
	}
}

/*
 * ajax失败回调
 */
function ajaxCallbackErrorFunc(data, textStatus){
	warningTip(data.resultrecord);
}

/*
 * 获取列表选中的人员ID
 */
function getUserIds(){
	var arrayUsers = manager.getSelecteds();
	if(arrayUsers.length == 0){
		return "";
	} else {
		var text = "";
		for(var i=0; i<arrayUsers.length; i++){
			text += arrayUsers[i].tbe_id + ",";
		}
		return text.substring(0, text.length - 1);
	}
}

/*
 * 新增/修改人员
 */
function addData(row){
	document.getElementById('emp_tem_form').reset();
	
	if(row){
		loadForm("emp_tem_form", row);
		<%
		list = dicMap.get("27");
		if(null != list && list.size() > 0){
			for(Map<String, String> map: list){
		%>
			if(row.tbe_marital_status == '<%=map.get("tmgd_id")%>'){
				$("#tbe_marital_status_text").val('<%=map.get("tmgd_name")%>');
			}
		<%
			}
		}
		%>
	} else {
		$("#tbe_marital_status").val('8A90F0D0176C4961B322BEB26703A320');
		$("#tbe_marital_status_text").val('未婚');
		$("#tbe_id").val('');
	}
	
	if(win == null){
		win = initWindowByDiv('empAdd-div', '编辑人员', 880, 470 ,save, closeWin);
	}else{
		win.show();
	}
}

/*
 * 新建/修改人员信息
 */
function save(){
	var tbe_name = $("#tbe_name").val().trim();
	var tbe_idcard = $("#tbe_idcard").val().trim();
	var tbe_birthday = $("#tbe_birthday").val();
	var tbe_native_palce = $("#tbe_native_palce").val().trim();
	var tbe_address = $("#tbe_address").val().trim();
	var tbe_family_phone = $("#tbe_family_phone").val().trim();
	var tbe_spell_code = $("#tbe_spell_code").val().trim();
	var tbe_qualification = $("#tbe_qualification").val().trim();
	var tbe_memo = $("#tbe_memo").val().trim();
	
	if('' == tbe_name){warningTip("姓名：不能为空"); return;}
	if(!checkIsString(tbe_name)){
		warningTip("姓名：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbe_name) > 32){
		warningTip("姓名：不能超过32字符");
		return;
	}
	if('' == tbe_idcard){warningTip("身份证号：不能为空"); return;}
	if(!checkIsString(tbe_idcard)){
		warningTip("身份证号：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbe_idcard) > 32){
		warningTip("身份证：不能超过32字符");
		return;
	}
	if('' == tbe_birthday){warningTip("出生日期：不能为空"); return;}
	
	if(fucCheckLength(tbe_idcard) > 32){
		warningTip("身份证：不能超过32字符");
		return;
	}

	if(!checkIsString(tbe_native_palce)){
		warningTip("籍贯：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbe_native_palce) > 64){
		warningTip("籍贯：不能超过64字符");
		return;
	}
	
	if(!checkIsString(tbe_address)){
		warningTip("家庭住址：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbe_address) > 128){
		warningTip("家庭住址：不能超过128字符");
		return;
	}
	if(fucCheckLength(tbe_family_phone) > 32){
		warningTip("家庭住址：不能超过32字符");
		return;
	}
	if(!checkIsTelephone(tbe_family_phone)){
		warningTip("家庭电话：格式应为12345678、0431-12345678、0431-12345678-12345");
		return;
	}
	if(!checkIsString(tbe_spell_code)){
		warningTip("职务：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbe_spell_code) > 32){
		warningTip("职务：不能超过32字符");
		return;
	}
	if(!checkIsString(tbe_qualification)){
		warningTip("文化程度：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbe_qualification) > 32){
		warningTip("文化程度：不能超过32字符");
		return;
	}
	if(!checkIsString(tbe_memo)){
		warningTip("备注：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbe_memo) > 512){
		warningTip("备注：不能超过512字符");
		return;
	}
	
	var text = document.getElementById('org_id');
	text = text.options[text.selectedIndex].text.replaceAll('-','');
	$('#reserve1').val(text);
	_jsonObj.logicdata = getForm("emp_tem_form");
	var tbe_id = $("#tbe_id").val();
	if(tbe_id == ''){
		_jsonObj.methodname = "save";
		callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
	} else {
		_jsonObj.methodname = "update";
		callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
	}
}

/*
 * 删除人员
 */
function delData(){
	var userIds = getUserIds();
	if(userIds == ""){
		succMsgTip('请至少选择一个用户进行操作');
		return;
	}
	$.ligerDialog.confirm('确定要删除选中的数据吗？（删除不可恢复）', function (opt) { 			
		if(opt){
			_jsonObj.methodname = "delete";
			_jsonObj.logicdata = "[{\"ids\":\"" + userIds + "\"}]";
			callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
		}
	});
}

/*
 * 条件查询
 */
function serch1(){
	var orgIds = $('#org2').val();
	var tbe_name = $('#ser1').val();
	var tbe_idcard = $('#ser4').val();
	
	_jsonObj.methodname = "queryPage_tem";
	_jsonObj.logicdata = '[{\"orgIds\":\"' + orgIds + '\",\"tbe_name\":\"' + tbe_name
			+ '\",\"tbe_idcard\":\"' + tbe_idcard + '\",\"types\":\"serch1\"}]';
	manager.loadData();
}
/*
 * 临时工明细
 */
function serch2(){
	//window.open("temporary.jsp?orgId=<%=user.getCurOrgId()%>","临时用工明细表","height=600,width=500,top=0,location=no,status=no,alwaysRaised=yes,z-look=yes") ;
	window.showModalDialog("<%=basePath%>jsp/app/temporary.jsp?orgId=<%=user.getCurOrgId()%>"); 
}
function save_temp(){
	var pnum = $("#ser5").val();
	if(!isNum(pnum)){
		warningTip("人数：只能输入整数");
		return false;
	}
	if(fucCheckLength(pnum) > 10 && pnum < 0){
		warningTip("临时用工人数，不能超过10位数且不能为负数");
		return false;
	}
	_jsonTemp.methodname = "save";
	_jsonTemp.logicdata = "[{\"orgId\":\"\",\"num\":\""+$('#ser5').val()+"\"}]";
	callserver(_jsonTemp, function(data,status){succMsgTip(data.resultrecord);},function(data,status){warningTip(data.resultrecord);});
}

</script>
	</head>
	<body>
  		<table id="aaa" class="serTable">
			<tr>
				<td>
					机构：<select id="org2" name="org2" style=" width: 150px;">
							<%=user.getCurSubOrgOptions()%>
						</select>
				</td>
				<td>姓名：<input id="ser1" style="width: 80px;"/></td>
				<td>身份证：<input id="ser4" /></td>
				<td><input class="btn2" value="搜索" type="button" onclick="serch1();" /></td>
				<td>临时用工人数：<input id="ser5" style="width: 60px;"/><input id="st_btn" class="btn2" value="保存" type="button" onclick="save_temp()"/></td>
				<td><input class="btn2" value="明细" type="button" onclick="serch2();" /></td>
			</tr>
		</table>
		
		<div id="emp_tem_grid"></div>
		
		<div id="empAdd-div" style="display: none;">
			<form id="emp_tem_form" name="emp_tem_form">
				<input type="hidden" id="tbe_id" name="tbe_id" value="" />
				<input type="hidden" id="tbe_marital_status" name="tbe_marital_status" />
				<input type="hidden" id="tbe_political_status" name="tbe_political_status" value="" />
				<input type="hidden" id="reserve1" name="reserve1" value="" />
				<input type="hidden" id="reserve2" name="reserve2" value="" />
				<input type="hidden" id="reserve3" name="reserve3" value="" />
				<input type="hidden" id="reserve4" name="reserve4" value="" />
				<input type="hidden" id="reserve5" name="reserve5" value="" />
				<input type="hidden" id="create_by" name="create_by" value="" />
				<input type="hidden" id="create_time" name="create_time" value="" />
				<input type="hidden" id="last_modify_by" name="last_modify_by" value="" />
				<input type="hidden" id="last_modify_time" name="last_modify_time" value="" />
				<!--  暂时不用的字段-->
				<input type="hidden" id="tbe_mobile" name="tbe_mobile" value="" />						
				<input type="hidden" id="tbe_age" name="tbe_age" value="0" />						
				<input type="hidden" id="tbe_marital_condition" name="tbe_marital_condition" value="" />						
				<input type="hidden" id="tbe_seniority" name="tbe_seniority" value="0" />						
				<input type="hidden" id="tbe_former_name" name="tbe_former_name" value="" />						
				<input type="hidden" id="tbe_order" name="tbe_order" value="0" />						
				<input type="hidden" id="tbe_birthplace" name="tbe_birthplace" value="" />						
				<input type="hidden" id="tbe_graduate_college" name="tbe_graduate_college" value="" />					
				<input type="hidden" id="tbe_major" name="tbe_major" value="" />						
				<input type="hidden" id="tbe_join_time" name="tbe_join_time" value="" />						
				<input type="hidden" id="tbe_ba_status" name="tbe_ba_status" value="" />
				<input type="hidden" id="tbe_children_status" name="tbe_children_status" value="" />
				<input type="hidden" id="tbe_status" name="tbe_status" value="102-1" />
				<input type="hidden" id="tbe_is_late_birth" name="tbe_is_late_birth" value="0" />
				<input type="hidden" id="tbe_work_permit" name="tbe_work_permit" value="" />
				<table class="form_table">
					<tr>
						<td colspan="9" align="left">
							<div style="border-bottom: 1px solid #EBEBEB; font-weight:bold;height: 28px; line-height: 28px;margin: 0 0 5px;" >
								<img src="ligerUI/skins/icons/communication.gif"/>
								<span>基础信息</span>
							</div>
						</td>
					</tr>
					<tr>
						<td class="form_label">机构：</td>
						<td>
							<select id="org_id" name="org_id" style=" width: 182px;height:22px" >
								<%=user.getCurSubOrgOptions()%>
							</select>
						</td>
						<td><font color="red">*</font></td>
						<td class="form_label">姓名：</td>
						<td><input class="textbg1" id="tbe_name" name="tbe_name" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"/></td>
						<td><font color="red">*</font></td>
						<td class="form_label">身份证号：</td>
						<td><input class="textbg1" id="tbe_idcard" name="tbe_idcard" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"/></td>
						<td><font color="red">*</font></td>
					</tr>
					<tr>
						<td class="form_label">出生日期：</td>
						<td><input id="tbe_birthday" name="tbe_birthday" onkeyup="this.value=formatdata(this.value);"/></td>
						<td><font color="red">*</font></td>
						<td class="form_label">性别：</td>
						<td align="left" id="tbe_sex">
							<input style="margin-top: 2px;" type="radio" name="tbe_sex" value="男" checked="checked" />男
							<input style="margin-top: 2px;" type="radio" name="tbe_sex" value="女" />女
						</td>
						<td></td>
						<td class="form_label">民族：</td>
						<td>
							<select id="tbe_nation" name="tbe_nation" style=" width: 182px;">
								<%=tbe_nation%>
							</select>
						</td>
						<td></td>
					</tr>
					<tr>
						<td class="form_label">籍贯：</td>
						<td><input class="textbg1" id="tbe_native_palce" name="tbe_native_palce" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"/></td>
						<td></td>
						<td class="form_label">家庭住址：</td>
						<td><input class="textbg1" id="tbe_address" name="tbe_address" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"/></td>
						<td></td>
						<td class="form_label">家庭电话：</td>
						<td><input class="textbg1" id="tbe_family_phone" name="tbe_family_phone" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"/></td>
						<td></td>
					</tr>
					
					<tr>
						<td colspan="9" align="left">
							<div style="border-bottom: 1px solid #EBEBEB; font-weight:bold; height: 28px; line-height: 28px;margin: 0 0 5px;" >
								<img src="ligerUI/skins/icons/communication.gif"/>
								<span>工作信息</span>
							</div>
						</td>
					</tr>
					<tr>
						<td class="form_label">用工形式：</td>
						<td>
							<select id="tbe_employment_forms" name="tbe_employment_forms" style=" width: 182px;">
								<%=tbe_employment_forms%>
							</select>
						</td>
						<td></td>
						<td class="form_label">职级：</td>
						<td>
							<select id="tbe_position" name="tbe_position" style=" width: 182px;">
								<option value="2">生产操作服务</option>
								<option value="1">专业技术管理</option>
							</select>
						</td>
						<td></td>
						<td class="form_label">职务：</td>
						<td><input class="textbg1" id="tbe_spell_code" name="tbe_spell_code" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"/></td>
						<td></td>
					</tr>
					<tr>
						<td class="form_label">参加工作时间：</td>
						<td><input id="tbe_work_area" name="tbe_work_area" onkeyup="this.value=formatdata(this.value);"/></td>
						<td></td>
						<td class="form_label">文化程度：</td>
						<td><input class="textbg1" id="tbe_qualification" name="tbe_qualification" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"/></td>
						<td></td>
					</tr>
					<tr>
						<td colspan="9" align="left">
							<div style="border-bottom: 1px solid #EBEBEB; font-weight:bold; height: 28px; line-height: 28px;margin: 0 0 5px;" >
								<img src="ligerUI/skins/icons/communication.gif"/>
								<span>婚姻信息</span>
							</div>
						</td>
					</tr>
					<tr>
						<td class="form_label">婚姻状态：</td>
						<td>
							<input id="tbe_marital_status_text" name="tbe_marital_status_text" readonly="readonly" class="textbg1" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"/>
						</td>
						<td></td>
						<td class="form_label">结婚时间：</td>
						<td><input id="tbe_married_time" name="tbe_married_time" readonly="readonly" class="textbg1" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'"/></td>
						<td></td>
						<td class="form_label">结婚证号：</td>
						<td><input id="tbe_marriage_certificate" name="tbe_marriage_certificate" readonly="readonly" validate="{maxlength:32}" class="textbg1" onMouseOver="this.style.borderColor='#4fa8e6'" onMouseOut="this.style.borderColor='#A1A3A1'" /></td>
						<td></td>
					</tr>
					<tr>
						<td class="form_label">是否晚婚：</td>
						<td align="left" id="tbe_is_late_marriage">
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="tbe_is_late_marriage" value="1"  />是
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="tbe_is_late_marriage" value="0" checked="checked"/>否
						</td>
						<td></td>
					</tr>
					<tr>
						<td colspan="9" align="left">
							<div style="border-bottom: 1px solid #EBEBEB; font-weight:bold; height: 28px; line-height: 28px;margin: 0 0 5px;" >
								<img src="ligerUI/skins/icons/communication.gif"/>
								<span>生育信息</span>
							</div>
						</td>
					</tr>
					<tr>
						<td class="form_label">重点对象：</td>
						<td align="left" id="tbe_is_es">
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="tbe_is_es" value="1" />是
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="tbe_is_es" value="0" checked="checked" />否
						</td>
						<td></td>
						<td class="form_label">重点时间：</td>
						<td><input id="tbe_es_time" name="tbe_es_time" onkeyup="this.value=formatdata(this.value);" style=" width: 182px; margin-left: 1px;"/></td>
						<td></td>
						<td class="form_label">重点理由：</td>

						<td><select id="tbe_es_reason" name="tbe_es_reason" style=" width: 182px; margin-left: 1px;">
						     <option value="0">-- 无 --</option>
						    <%=tbe_es_reason%>
						    </select></td>
						<td></td>
					</tr>
					<tr>
						<td class="form_label" >允许再生育：</td>
						<td align="left" id="tbe_is_again_birth">
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="tbe_is_again_birth" value="1" />是
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="tbe_is_again_birth" value="0" checked="checked" />否
						</td>
						<td></td>
						<td class="form_label">是否绝经：</td>
						<td align="left" id="the_is_menopause">
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="the_is_menopause" value="1"/>是
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="the_is_menopause" value="0" checked="checked"/>否
						</td>
						<td></td>
						<td class="form_label">是否不孕症：</td>
						<td align="left" id="tbe_is_barrenness">
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="tbe_is_barrenness" value="1" />是
							<input style="margin-top: 2px; margin-left: 5px;" type="radio" name="tbe_is_barrenness" value="0" checked="checked"/>否
						</td>
						<td></td>
					</tr>
					<tr>
						<td class="form_label">节育措施：</td>
						<td>
							<select id="tbe_birth_control_measures" name="tbe_birth_control_measures" style="width:182px;">
								<%=tbe_birth_control_measures%>
							</select>
						</td>
						<td></td>
						<td class="form_label">备注：</td>
						<td colspan="5"><textarea class="textbg3" cols='63'  id="tbe_memo" name="tbe_memo" ></textarea></td>
					</tr>
					<tr>
						
					</tr>
					<tr><td><br /></td></tr>
				</table>
			</form>
		</div>
		
		
  </body>
</html>
